/**
* @author AlbertDarren
* @contact 2563491540@qq.com
*/
#include <iostream>
#include <cstring>
using namespace std;

int main_47()
{
    char str[29];
    int A,B,C;
    cin.getline(str,29);
    if (sscanf(str,"%d is greater than %d",&A,&B)==2)
    {
        printf(A>B?"Yes\n":"No\n");
    }
    else if (sscanf(str,"%d is equal to %d plus %d",&A,&B,&C)==3)
    {
        printf(A==(B+C)?"Yes\n":"No\n");
    }
    else
    {
        printf("???\n");
    }
    return 0;
}
